
var tools = {};

tools.isNullOrUndef = function(obj){
    return (obj==null || obj===null || obj==undefined || obj===undefined) ? true : false;
};

tools.redirect = function(redirectTo){
    window.location.replace(redirectTo);    
}

tools.objLength = function(obj){    
    var key,len=0;
    for(key in obj){
        if (obj.hasOwnProperty(key)){ len++; }
    }
    return len;
};
